package object4.package5;
//接入多个接口
//青蛙直接继承两栖类即可
public class Frog extends Animal implements IAmphibious{

    public Frog(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(getName() + "一跳一跳的跑");
    }

    @Override
    public void swim() {
        System.out.println(getName() + "使用四条腿游泳");
    }
}
